/**
 * 		Authenticator.java
 *  Adrián E. Córdoba 		04/05/2014
 */
package ar.com.adriancordoba.app.enterprise.rosc.ejb.stateless.concretes;

import ar.com.adriancordoba.app.enterprise.rosc.ejb.stateless.interfaces.AuthenticatorRemote;
import ar.com.adriancordoba.app.enterprise.rosc.model.entities.User;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 * 
 * @author Adrián E. Córdoba
 */
@Stateless
@LocalBean
public class Authenticator implements AuthenticatorRemote {

	/**
	 * Default constructor.
	 */
	public Authenticator() {
	}

	/**
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public User authenticate(String username, String password) {
		return User.getUser(username, password);
	}
}
